﻿{% extends 'base.html' %} 

<!-- 导入css和js -->
{% block cssAndjava %}
<link rel=stylesheet type="text/css" href="/css/attention.css">
<script type="text/javascript" src="/script/attention.js"></script>
{% endblock cssAndjava %}

<!-- 修改页边 -->
{% block pageside %}
{% endblock pageside %}

<!-- 修改主体内容 -->
{% block mainbody %}
<div class="body_add">
	<form action="/attention/" method="POST">
		<table>
			<tr><th>{{ form.title.label_tag }}*&nbsp&nbsp&nbsp</th><td>{{ form.title }}&nbsp&nbsp&nbsp{{form.title.errors.0}}</td></tr>
			<tr><th>{{ form.label.label_tag }}&nbsp&nbsp&nbsp</th><td>{{ form.label }}&nbsp&nbsp&nbsp{{form.label.errors.0}}</td></tr>
			<tr><th>{{ form.newLabel.label_tag }}&nbsp&nbsp&nbsp</th><td>{{ form.newLabel }}&nbsp&nbsp&nbsp{{form.newLabel.errors.0}}</td></tr>
			<tr><th>{{ form.content.label_tag }}&nbsp&nbsp&nbsp</th><td>{{ form.content }}&nbsp&nbsp&nbsp{{form.content.errors.0}}</td></tr>
		</table>
		<input type="hidden" name="idx" value={{idx}}>
		<div class="divButton">
			<input type="submit" value="保存"/>&nbsp&nbsp
			<input type="button" value="放弃" onclick="window.close();"/>
		</div>
	</form>
</div>
{% endblock mainbody %}